import { createPinia } from 'pinia'
import piniaPluginPersistedstate from 'pinia-plugin-persistedstate'
import useRoutersStore from './modules/routers.js'
import useTokenStore from './modules/token.js'
import useUserStore from './modules/user.js'

const pinia = createPinia()
pinia.use(piniaPluginPersistedstate)

export default pinia

export {
    useRoutersStore, 
    useTokenStore, 
    useUserStore 
}